package com.znf4.ad.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Ad {
	
	private	String id  ;               // id
	private String title ;             // 标题
	private String content ;           // 广告内容
	private String img	;              // 主图路径
	private String weight	;          // 权重
	private String position	;          // 广告摆放位置
	private String cost	;              // 广告费
	private String del_state = "否"	;  // 删除状态
//	@DateTimeFormat(pattern="yyyy-MM-dd") 
	private String expire_date	;      // 到期时间
	private String create_date  ;      // 创建时间
	private String edit_date 	;      // 修改时间
	
	
	public Ad(){}

	
	
	

	public String getDel_state() {
		return del_state;
	}


	public void setDel_state(String del_state) {
		this.del_state = del_state;
	}

	public String getId() {
		return id;
	}


	public void setId(String id) {
		this.id = id;
	}


	public String getTitle() {
		return title;
	}


	public void setTitle(String title) {
		this.title = title;
	}


	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}


	public String getImg() {
		return img;
	}


	public void setImg(String img) {
		this.img = img;
	}


	public String getWeight() {
		return weight;
	}


	public void setWeight(String weight) {
		this.weight = weight;
	}


	public String getPosition() {
		return position;
	}


	public void setPosition(String position) {
		this.position = position;
	}


	public String getCost() {
		return cost;
	}


	public void setCost(String cost) {
		this.cost = cost;
	}


	public String getExpire_date() {
		return expire_date;
	}


	public void setExpire_date(String expire_date) {
		this.expire_date = expire_date;
	}


	public String getCreate_date() {
		return create_date;
	}


	public void setCreate_date(String create_date) {
		this.create_date = create_date;
	}


	public String getEdit_date() {
		return edit_date;
	}


	public void setEdit_date(String edit_date) {
		this.edit_date = edit_date;
	}




	@Override
	public String toString() {
		return "Ad [id=" + id + ", title=" + title + ", content=" + content + ", img=" + img + ", weight=" + weight
				+ ", position=" + position + ", cost=" + cost + ", del_state=" + del_state + ", expire_date="
				+ expire_date + ", create_date=" + create_date + ", edit_date=" + edit_date + "]";
	}


	

	
	
	
	
	
	

}
